<?php
// Path: system/classes/framework.class.php

class class_framework {
  // Variables
  private $variables;
  
  // Functions
  function load($type, $name) {
    global $framework;
    global $application;
    switch ($type) {
      case "block":
        include($framework['variables']['paths']['application'] . 'blocks/' . $name . '.php');
        return true;
      break;
      case "controller":
        include($framework['variables']['paths']['application'] . 'controllers/' . $name . '.php');
        return true;
      break;
      case "model":
        include($framework['variables']['paths']['application'] . 'models/' . $name . '.php');
        return true;
      break;
      case "view":
        include($framework['variables']['paths']['application'] . 'views/' . $name . '.php');
        return true;
      break;
      case "class":
        include($framework['variables']['paths']['application'] . 'classes/' . $name . '.class.php');
        return true;
      break;
      case "plugin":
        include($framework['variables']['paths']['system'] . 'plugins/' . $name . '/plugin.php');
        return true;
      break;
      default:
        return false;
      break;
    }
  }
}

?>
